package com.dailyblue.java.project.bookstore.book.feign;

import com.dailyblue.java.project.bookstore.book.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "count")
public interface CountService {
    @GetMapping("/count/{bookId}")
    JsonResult book(@PathVariable("bookId") int bookId);
}
